import { createSlice } from "@reduxjs/toolkit";

const slice = createSlice({
  name: "TheadersModal",
  initialState: {
    showModal: false,
  },
  reducers: {
    changeTrue: (state) => {
      state.showModal = true;
    },
    changeFalse: (state) => {
      state.showModal = false;
    },
  },
});
export const { changeTrue, changeFalse } = slice.actions;
export default slice.reducer;
